package com.cycplus.test.ui

import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.Adapter
import com.cycplus.test.databinding.ItemVideoSliceBinding

class HighLightMomentAdapter(
    private val dataList: List<String>,
) : Adapter<VideoSliceHolder>() {

    private lateinit var context: Context

    override fun getItemCount(): Int {
        return dataList.size
    }

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): VideoSliceHolder {
        context = parent.context
        return VideoSliceHolder(ItemVideoSliceBinding.inflate(LayoutInflater.from(context), parent, false))
    }

    override fun onBindViewHolder(holder: VideoSliceHolder, position: Int) {
        val item = dataList[position]

    }
}

class VideoSliceHolder(var binding: ItemVideoSliceBinding) : RecyclerView.ViewHolder(binding.root)
